<template>
	<list-box   :name="name" :word="word" :params="params">
			<!-- <view  class="mfzx row" v-for="(item, index) in courseData" v-if="index<1" :key="index"
			@click="navTo(`/pages/doctor/info?id=${item.id}`)"> -->
			
			<view  class="mfzx row" @click="navTo(`/pages/doctor/info?id=${item.id}`)">
			
			<view>
				<!-- <image class="mfzx-img " :src="item.img"></image> -->
				<image class="mfzx-img " src="http://ydxcx.dianteng.cc/static/uploads/picture/20221102/bfdc12ffcd3bdf1325bd6b29cf46c463.png"></image>
			</view>

			<view class="tech-z">
				<view class="row tech-name-info ">
					<!-- <view class="tech-name">{{item.name}}</view> -->
					<view class="tech-name">日久见人心</view>
					<view class="sexbb row">
						<image class="seximg " src="/static/images/nan.png"></image>
					</view>
					
				</view>
				<view class="user-info">重庆 | 28岁 | 168cm | 本科</view>
				<!-- <view class="tech-info">{{item.introduce}}</view> -->
				<view class="tech-info">曾经心动的瞬间，如今都成了心痛的理由。余生能找个能闯入我世界的人。</view>
			</view>
		</view>
		
		<view  class="mfzx row" @click="navTo(`/pages/doctor/info?id=${item.id}`)">
			<view>
				<image class="mfzx-img " src="http://ydxcx.dianteng.cc/static/uploads/picture/20221102/bfdc12ffcd3bdf1325bd6b29cf46c463.png"></image>
			</view>
			<view class="tech-z">
				<view class="row tech-name-info ">
					<view class="tech-name">日久见人心</view>
					<view class="sexbb row">
						<image class="seximg " src="/static/images/nan.png"></image>
					</view>
				</view>
				<view class="user-info">重庆 | 28岁 | 168cm | 本科</view>
				<view class="tech-info">曾经心动的瞬间，如今都成了心痛的理由。余生能找个能闯入我世界的人。</view>
			</view>
		</view>

	</list-box>
</template>

<script>
	import listBox from './list-box.vue'
	import courseItem from '@/components/common/course-item.vue'
	import courseData from '@/mock/courseData.js'
	export default {
		components: {
			listBox,
			courseItem
		},
		props: {
			name: {
				type: String,
				default: '热门推荐'
			},
			word: { // HOT
				type: String,
				default: null
			},
			column: { // 默认swiper-item展示2列1
				type: Number,
				default: 2
			},
			rows: { // 默认4行
				type: Number,
				default: 5
			},
			courseData: {
				
			},

			params: Object, // 点11击`全部`按钮要向搜索页传递的查询条件
		}
	}
</script>

<style lang="scss">
	// .list-swiper {
	// 	height: 800rpx;
	// }
	.mfzx {
		// align-items: center;
		margin-top: 30rpx;
		padding: 20rpx 20rpx;
		width: 690rpx;
		height: 260rpx;
		background: #FFFFFF;
		box-shadow: 0px 0px 6px 0px rgba(6,0,1,0.1);
		border-radius: 18rpx;

		.mfzx-img {
			width: 240rpx;
			height: 220rpx;
			border-radius: 14rpx;
		}

		.tech-z {
			// background-color: #005CC5;
			height: 120rpx;
			width: 481rpx;
			margin-left: 30rpx;
		}

		.tech-name-info {

			// height: 100%;
			// width: 481rpx;
			margin-top: 15rpx;
			// background-color: #005CC5;
			.tech-name {
				// width: 100rpx;
				font-size: 30rpx;
				font-family: Microsoft YaHei;
				font-weight: bold;
				color: #333333;
				white-space:nowrap;
			}
			

			.mxfx-wz {
				width: 130rpx;
				height: 46rpx;
				background: linear-gradient(90deg, #BB73D5, #643A92);
				border-radius: 23rpx;
				font-size: 24rpx;

				font-family: Microsoft YaHei;
				font-weight: 400;
				color: #FFFFFF;
				line-height: 36rpx;
				
			}
			.sexbb{
				margin-left: 10rpx;
				align-items: center;
				// justify-content: center;
			}
			.seximg{
				width: 26rpx;
				height: 26rpx;
			}

		}
		.user-info{
			// width: 300rpx;
			margin-top: 18rpx;
			height: 26rpx;
			font-size: 24rpx;
			font-family: PingFang;
			font-weight: 500;
			color: #707070;
			white-space: normal;
		}

		.tech-info {
			margin-top: 28rpx;
			max-width: 480rpx;
			height:70rpx;
			font-size: 26rpx;
			font-family: Microsoft YaHei;
			font-weight: 400;
			color: #999999;
			line-height: 35rpx;
			
			// 显示两行，超出部分用...代替
			overflow: hidden; // 超出隐藏
			text-overflow: ellipsis; //超出部分显示省略号
			-webkit-line-clamp: 2; //设置显示的行数
			display: -webkit-box; // 将对象作为弹性伸缩盒子模型显示
			-webkit-box-orient: vertical; // 设置或检索伸缩盒对象的子元素的排列方式 纵向
			white-space: normal; // 空白会被浏览器忽略
		}
	}
</style>
